package com.sf.fy.uav.good.controller;

import com.sf.fy.uav.common.request.order.task.GoodsSoundRecordingRequest;
import com.sf.fy.uav.good.entity.GoodsSoundRecording;
import com.sf.fy.uav.good.service.IGoodsSoundRecordingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 商品录音 前端控制器
 * </p>
 *
 * @author LTQ
 * @since 2023-04-25
 */
@RestController
@RequestMapping("/home/goods-sound-recording")
public class GoodsSoundRecordingRest {

    @Autowired
    private IGoodsSoundRecordingService iGoodsSoundRecordingService;

    public void add(GoodsSoundRecordingRequest goodsSoundRecordingRequest) {
        iGoodsSoundRecordingService.add(goodsSoundRecordingRequest);
    }

    public List<GoodsSoundRecording> selectListByTaskId(String taskId) {
        return iGoodsSoundRecordingService.selectListByTaskId(taskId);
    }
}
